package cn.south.campus.business.mapper;

import cn.south.campus.business.model.entity.GoodsOrder;
import cn.south.campus.business.model.req.GoodsOrderQueryReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author chow
 * @since 2024-11-14
 */
public interface GoodsOrderMapper extends BaseMapper<GoodsOrder> {

    IPage<GoodsOrder> pageQuery(PageDTO<GoodsOrder> pageDto, @Param("query") GoodsOrderQueryReq req);

    GoodsOrder queryBuyerOrder(@Param("orderNo") String orderNo, @Param("userId") Long userId);

    GoodsOrder querySellerOrder(@Param("orderNo") String orderNo, @Param("userId") Long userId);
}
